
<div class="jumbotron">

	<div class="cleaner"></div>
	<div id="navbar-inner" class="navbar-inner header">
		<span class="span-leave"><?php echo strtoupper(PNC_Controller::LEAVE_CRUID); ?></span>
	</div>
</div>
<!-- Example row of columns -->
<div class="row-fluid">	
	<?php
	if ($this->session->userdata('delete_error')) {
		echo $this->session->userdata('delete_error');
		$this->session->unset_userdata('delete_error');
	} else if ($this->session->userdata('delete_checked')) {
		echo $this->session->userdata('delete_checked');
		$this->session->unset_userdata('delete_checked');
	} else if ($this->session->userdata('edit_success')) {
		echo $this->session->userdata('edit_success');
		$this->session->unset_userdata('edit_success');
	} else if ($this->session->userdata('delete_success')) {
		echo $this->session->userdata('delete_success');
		$this->session->unset_userdata('delete_success');
	} else if ($this->session->userdata('sent_request')) {
		echo $this->session->userdata('sent_request');
		$this->session->unset_userdata('sent_request');
	} else if ($this->session->userdata('send_success')) {
		echo $this->session->userdata('send_success');
		$this->session->unset_userdata('send_success');
	} else if ($this->session->userdata('approve_success')) {
		echo $this->session->userdata('approve_success');
		$this->session->unset_userdata('approve_success');
	} else if ($this->session->userdata('disapprove_success')) {
		echo $this->session->userdata('disapprove_success');
		$this->session->unset_userdata('disapprove_success');
	} else if ($this->session->userdata('delete_error')) {
		echo $this->session->userdata('delete_error');
		$this->session->unset_userdata('delete_error');
	} else if ($this->session->userdata('add_seccuss')) {
		echo $this->session->userdata('add_seccuss');
		$this->session->unset_userdata('add_seccuss');
	}
	?>
	<div class="cleaner"></div>
	<div>
		<?php
		$this->load->view("incs/nav_menu");
		?>
	</div>
	<?php
	if ($this->session->userdata('admin')) {
		if ($this->uri->segment(3) === "annual" OR !$this->uri->segment(3)) {
			$this->load->view("record/annual");
		} else if ($this->uri->segment(3) === 'catchup') {
			$this->load->view("record/catchup");
		} else if ($this->uri->segment(3) === 'pending') {
			$this->load->view('record/pending');
		} else if ($this->uri->segment(3) === 'approval') {
			$this->load->view('record/approval');
		}
	} else {
		redirect('main/');
	}
	?>
</div>